<template>
  <div class="subView2">子页面2</div>
</template>
<script>
export default {
  name: "subView2",
  data() {
    return {};
  },
  created() {
    let _this = this;
    this.$utils.antiShake(
      () => {
        _this.testRequestAll();
      },
      "subView2",
      2000
    );
    // this.testRequestAll();
  },
  mounted() {},
  activated() {},
  deactivated() {},
  methods: {
    testRequestAll() {
      let requesList = [];
      requesList.push(
        this.$network.netRequest(
          {
            method: "POST", // 'GET' 'POST' 'FILE' 大小写通用
            IPPort: "collection",
            urlName: "testRequest",
            fileObj: "", // method = 'FILE' 情况下
            contentType: "application/x-www-form-urlencoded", //method = 'POST'请求下 'application/x-www-form-urlencoded' , 'application/json';
          },
          {
            ids: "12334455",
          }
        )
      );

      requesList.push(
        this.$network.netRequest(
          {
            method: "POST", // 'GET' 'POST' 'FILE' 大小写通用
            IPPort: "collection",
            urlName: "testRequest",
            fileName: "", // method = 'FILE' 情况下
            contentType: "application/x-www-form-urlencoded", //method = 'POST'请求下 'application/x-www-form-urlencoded' , 'application/json';
          },
          {
            ids: "12334455",
          }
        )
      );

      this.$network
        .requestAll(requesList)
        .then((res) => {})
        .catch((err) => {});
    },
  },
};
</script>
<style scoped>
.subView2 {
  background: #e6fd80;

  height: 100%;
  /* stretch 属性标识按照对称轴垂直方向沾满容器 前提是容器没有设置对称轴垂直方向的距离属性 width/height*/
  align-self: stretch;
  padding: 10px;
  margin: 2px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
</style>